package com.gxa.community.admin.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.community.core.pojo.domain.OperateTicket;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

/**
 * <p>
 * 优惠券信息表 Mapper 接口
 * </p>
 *
 * @author XYJ
 * @since 2022-07-20
 */
@Repository
public interface OperateTicketMapper extends BaseMapper<OperateTicket> {

    Integer updatestatus(@Param("status")Integer status, @Param("id")Integer id);//根据id将状态修改了

    //获取用户使用的消费券面值
    BigDecimal selectCouponPrice(Integer userId);

    //获取消费券编号
    String selectCouponNoById(Integer id);

}
